#!/usr/bin/env python
# _*_ coding:utf-8 _*_
# -= project0/__init__.py.py coding by Scott in 2019-06-05 17:03 with IDE:PyCharm =-
import json
import os


class Cfg:
    redis_host = ''
    appid = ''
    secret = ''
    pass


BASE_DIR = os.path.dirname(os.path.abspath(__file__)) + "/" + "config.json"

with open(BASE_DIR, 'r') as f:
    _dict = json.loads(f.read())
    Cfg.redis_host = _dict['redis_host']
    Cfg.appid = _dict['appid']
    Cfg.secret = _dict['secret']
